package com.tianyadu.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

/**
 * @FileName: DemoController
 * @Description:
 * @author: xueyj
 * @create: 2018-12-10 10:36
 */
@Controller
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/index")
    public ModelAndView goToIndex(Map<String, Object> map){
        map.put("msg", "首页登陆");
        return new ModelAndView("/demo-signIn.html");
    }
}